package com.woniu.his.mms.client;

import com.woniu.his.mms.client.param.CreateDrugModelParam;
import com.woniu.his.mms.client.param.ListPageDrugModelParam;
import com.woniu.his.mms.client.result.DrugModelPageResult;
import com.woniu.his.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;


/**
 * @version: java version 1.8
 * @Author: Mr tao
 * @description:
 * @date: 2022-11-30 10:59
 */
@FeignClient(contextId = "mmsDrugModelClient",name = "mms",path = "mms")
public interface MmsDrugModelClient {

    /**
     * 新增药品模板
     * @return
     */
    @PostMapping("/createDrugModel")
    public Result createDrugModel(@RequestBody CreateDrugModelParam createDrugModelParam);

    /**
     * 删除药品模板
     * @return
     */
    @DeleteMapping("/deleteDrugModel")
    public Result deleteDrugModel(@RequestParam("ids") List<Long> ids);

    /**
     * 更新药品模板
     * @return
     */
    @PutMapping("/updateDrugModel")
    public Result updateDrugModel(@RequestBody CreateDrugModelParam createDrugModelParam);


    /**
     * 查询药品模板且分页
     * @return
     */
    @PostMapping("/listPageDrugModel")
    public Result<DrugModelPageResult> listPageDrugModel(@RequestBody ListPageDrugModelParam pageDrugModelParam);

}
